/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testing;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.mockito.Mockito;
import java.util.List;

@RunWith(JUnit4.class)
public class MockitoDemo1 {
    @Test
    public void test() {
        // arrange
        List<String> listMock = Mockito.mock(List.class);
        // act
        listMock.add("Hello, Mockito!");
        System.out.println(listMock.get(0));
    }
}